import { createRouter, createWebHashHistory } from "vue-router";

const routes = [
    {

        path: "/home",
        redirect: '/Boke',
    },
    {
        path: '/404',
        name: 'Nopage404',
        component: () => import("../views/Nopage404.vue")
    },
    {
        path: '/:pathMatch(.*)',
        redirect: '/404',
        hidden: true
    },
    {
        alias: "/",
        path: '/home',
        name: 'Home',
        component: () => import('../views/Home.vue'),
        children: [
            // {
            //     path: '/shoueye',
            //     name: 'shoueye',
            //     // redirect: '/home',
            //     component: () => import('../views/shoueye.vue')
            // },
            {
                path: '/Boke',
                name: 'Boke',
                component: () => import('../views/Boke.vue')
            },
            {
                path: '/Boke1',
                name: 'Boke1',
                component: () => import('../views/Boke1.vue')
            },
            {
                path: '/boke2',
                component: () => import('../views/Boke2.vue')
            }
        ]
    },
]

export default createRouter({
    history: createWebHashHistory(),
    routes
})